/*
 Navicat Premium Data Transfer

 Source Server         : ms sql 2016
 Source Server Type    : SQL Server
 Source Server Version : 13005108
 Source Host           : 127.0.0.1:1433
 Source Catalog        : SchoolDB
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13005108
 File Encoding         : 65001

 Date: 09/03/2025 17:28:11
*/


-- ----------------------------
-- Table structure for students
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[students]') AND type IN ('U'))
	DROP TABLE [dbo].[students]
GO

CREATE TABLE [dbo].[students] (
  [id] bigint  IDENTITY(1,1) NOT NULL,
  [name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [age] int  NULL,
  [gender] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [class_name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[students] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of students
-- ----------------------------
SET IDENTITY_INSERT [dbo].[students] ON
GO

INSERT INTO [dbo].[students] ([id], [name], [age], [gender], [class_name]) VALUES (N'1', N'我', N'18', N'男', N'是')
GO

SET IDENTITY_INSERT [dbo].[students] OFF
GO


-- ----------------------------
-- Auto increment value for students
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[students]', RESEED, 1)
GO


-- ----------------------------
-- Primary Key structure for table students
-- ----------------------------
ALTER TABLE [dbo].[students] ADD CONSTRAINT [PK__students__3213E83F7D72FE18] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

